<?php
require_once('configure.php');
	$nama_jabatan=$_GET['nama_jabatan'];
	$npos=strpos($nama_jabatan,"/");
	$nama_jabatan=rtrim( substr( $nama_jabatan,0,$npos) );
	$nama_jabatan = strtoupper(trim($nama_jabatan));
	$query = "SELECT * FROM  jabatan a
		INNER JOIN sk_jabatan b ON b.sk_id=a.sk_id
		WHERE b.active='Y' 
		AND a.nomor_posisi =='{$nama_jabatan}' "; 
$res = my_query($query);  
if( my_num_rows($res) > 0 ){
	echo '1';
}

echo '0';
?>